﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="qlfeedbacks.ascx.cs" Inherits="admin_qlfeedbacks" %>
<asp:Repeater ID="Repeater1" runat="server"
    onitemcommand="Repeater1_ItemCommand" 
    onitemcreated="Repeater1_ItemCreated1" 
    onitemdatabound="Repeater1_ItemDataBound" >
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
Ngôn ngữ : <%#DataBinder.Eval(Container.DataItem, "lang")%><br />
Tiêu đề : <%#DataBinder.Eval(Container.DataItem, "title")%><br />
Tên : <%#DataBinder.Eval(Container.DataItem, "name")%><br />
Địa chỉ :  <%#DataBinder.Eval(Container.DataItem, "address")%><br />
Điện thoại :  <%#DataBinder.Eval(Container.DataItem, "phone")%><br />
Email : <%#DataBinder.Eval(Container.DataItem, "email")%><br />
Nội dung : <%#DataBinder.Eval(Container.DataItem, "content")%><br />
Check : <asp:CheckBox AutoPostBack="True" ID="cb" runat="server" 
ToolTip='<%#DataBinder.Eval(Container.DataItem, "id")%>' 
Checked ='<%#DataBinder.Eval(Container.DataItem, "check")%>'/><br />
<asp:Button ID="bt" runat="server" Text="Xoá" CommandName="del" 
CommandArgument='<%#DataBinder.Eval(Container.DataItem, "id")%>'/>
</td>
</tr>
</ItemTemplate>
<FooterTemplate></table></FooterTemplate>
</asp:Repeater>
<asp:HiddenField ID="hdfID" runat="server" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:canhbuomxanhconnectionstring %>" 
    SelectCommand="SELECT * FROM [Feedbacks]" 
    DeleteCommand="DELETE FROM Feedbacks">
    <DeleteParameters>
        <asp:Parameter Name="id" />
    </DeleteParameters>
</asp:SqlDataSource>
